package utils;

import entity.Log;
import org.springframework.beans.factory.annotation.Autowired;
import service.LogService;

public class MyLogger {

    public void addLog(LogService service, String username, String loginDate, String visitedPage) {
        Log log = new Log();
        log.setUser(username);
        log.setLoginDate(loginDate);
        log.setVisitedPage(visitedPage);

        service.save(log);
    }
}
